package ch09.shili;

import java.io.DataInputStream;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;

public class S10_B {
    public static void main(String[] args) {
        try(DataInputStream dis = new DataInputStream(new FileInputStream("data/s10.data"))){
            int a = dis.readInt();
            String b = dis.readUTF();
            int c = dis.readInt();
            System.out.println(a);
            System.out.println(b);
            System.out.println(c);
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
